﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using CCWP7.Service.Model;

namespace CCWP7.Service
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in code, svc and config file together.
    public class CruiseControl : ICruiseControl
    {
        public string TryGetSubscriptionUri(string clientId)
        {
            throw new NotImplementedException();
        }

        public void Subscribe(string clientId)
        {
            throw new NotImplementedException();
        }

        public string[] MonitoredServerUris()
        {
            var db = new CCNetDb();

            return db.Servers.Select(s => s.ServerUri).ToArray();
        }
    }
}
